package com.dstation.controller;


import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.internal.util.AlipaySignature;
import com.alipay.api.request.AlipayTradePagePayRequest;
import com.dstation.domain.OrderInfo;
import com.dstation.domain.SubscriptionPackageInfo;
import com.dstation.domain.UserInfo;
import com.dstation.pay.AlipayConfig;
import com.dstation.service.interf.ICoinService;
import com.dstation.service.interf.IUserService;
import com.dstation.utils.Constants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.*;

@Controller
@RequestMapping(value = "/coin")
public class CoinController {

    @Autowired
    private ICoinService coinService;

    @Autowired
    private IUserService userService;

    /**
     * 进入充值硬币界面
     * @return
     */
    @RequestMapping(value = "/rechargeCoinPage")
    public String rechargeCoinPage() {
        return "/main/rechargeCoinPage";
    }

}
